package cn.rokhdelar.umbrsapi.management.repository;

import cn.rokhdelar.umbrsapi.management.entity.SysUser;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;

public interface SysUserRepo extends JpaRepository<SysUser, Long> {
    Page<SysUser> findAllByNameContaining(String name, Pageable pageable);
    Page<SysUser> findAllByUsernameContaining(String username, Pageable pageable);
    SysUser findByUsername(String username);
}
